﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;
using HRMS.Controllers;

namespace HRMS.Controllers
{
    public class Subskills
    {
        public static void AddSubSkill(SubSkill subskill)
        {
            using (var subEntity = new HRMSEntities())
            {
                subEntity.SubSkills.AddObject(subskill);
                subEntity.SaveChanges();
            }

        }
        public static List<SubSkill> GetSubSkills()
        {
            using (var subEmtity = new HRMSEntities())
            {
                return subEmtity.SubSkills.ToList();
            }
        }
    }
}